<?php
class ControllerModuleBossStaticblock extends Controller {
	private $error = array(); 
	
	public function index() {   
		$this->language->load('module/boss_staticblock');

		$this->document->setTitle($this->language->get('heading_title'));
		
		$this->load->model('setting/setting');
				
		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
			$this->model_setting_setting->editSetting('boss_staticblock', $this->request->post);		
					
			$this->session->data['success'] = $this->language->get('text_success');
						
			$this->redirect($this->url->link('module/boss_staticblock', 'token=' . $this->session->data['token'], 'SSL'));
		}
				
		$this->data['heading_title'] = $this->language->get('heading_title');

		$this->data['text_enabled'] = $this->language->get('text_enabled');
		$this->data['text_disabled'] = $this->language->get('text_disabled');
		$this->data['text_browse'] = $this->language->get('text_browse');
        $this->data['text_clear'] = $this->language->get('text_clear');
        $this->data['text_image_manager'] = $this->language->get('text_image_manager');
		$this->data['text_content_top'] = $this->language->get('text_content_top');
		$this->data['text_content_bottom'] = $this->language->get('text_content_bottom');
		$this->data['text_header'] = $this->language->get('text_header');
		$this->data['text_slideshow'] = $this->language->get('text_slideshow');
		$this->data['text_footer'] = $this->language->get('text_footer');		
		$this->data['text_column_left'] = $this->language->get('text_column_left');
		$this->data['text_column_right'] = $this->language->get('text_column_right');
		$this->data['text_default'] = $this->language->get('text_default');
		
		$this->data['button_save'] = $this->language->get('button_save');
		$this->data['button_cancel'] = $this->language->get('button_cancel');
		$this->data['button_add_module'] = $this->language->get('button_add_module');
		$this->data['button_remove'] = $this->language->get('button_remove');
		$this->data['button_add_new_block'] = $this->language->get('button_add_new_block');
		
		$this->data['entry_content'] = $this->language->get('entry_content');
		$this->data['entry_layout'] = $this->language->get('entry_layout');
		$this->data['entry_store'] = $this->language->get('entry_store');
		$this->data['entry_position'] = $this->language->get('entry_position');
		$this->data['entry_status'] = $this->language->get('entry_status');
		$this->data['entry_sort_order'] = $this->language->get('entry_sort_order');
		
		//tab
		$this->data['tab_content'] = $this->language->get('tab_content');
		$this->data['tab_header'] = $this->language->get('tab_header');
		$this->data['tab_footer'] = $this->language->get('tab_footer');
		$this->data['tab_header_top'] = $this->language->get('tab_header_top');
		$this->data['tab_header_bottom'] = $this->language->get('tab_header_bottom');
		$this->data['tab_footer_1'] = $this->language->get('tab_footer_1');
		$this->data['tab_footer_2'] = $this->language->get('tab_footer_2');
		$this->data['tab_footer_3'] = $this->language->get('tab_footer_3');
		$this->data['tab_footer_4'] = $this->language->get('tab_footer_4');
		$this->data['tab_footer_5'] = $this->language->get('tab_footer_5');
		$this->data['tab_footer_6'] = $this->language->get('tab_footer_6');
		$this->data['tab_footer_7'] = $this->language->get('tab_footer_7');
		
		$this->data['tab_block'] = $this->language->get('tab_block');
		
 		if (isset($this->error['warning'])) {
			$this->data['error_warning'] = $this->error['warning'];
		} else {
			$this->data['error_warning'] = '';
		}

  		$this->data['breadcrumbs'] = array();

   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('text_home'),
			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => false
   		);

   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('text_module'),
			'href'      => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => ' :: '
   		);
		
   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('heading_title'),
			'href'      => $this->url->link('module/boss_staticblock', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => ' :: '
   		);
		
		$this->data['action'] = $this->url->link('module/boss_staticblock', 'token=' . $this->session->data['token'], 'SSL');
		
		$this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');
		
		$this->data['token'] = $this->session->data['token'];
		
		$this->load->model('localisation/language');
		
		$this->data['languages'] = $this->model_localisation_language->getLanguages();
		
		$this->data['b_Block_Header_Top'] = array();
		
		if (isset($this->request->post['b_Block_Header_Top'])) {
            $b_Block_Header_Top = $this->request->post['b_Block_Header_Top'];
		} elseif ($this->config->get('b_Block_Header_Top')) { 
            $b_Block_Header_Top = $this->config->get('b_Block_Header_Top');
		} else{
			$b_Block_Header_Top = '';
		}
		
		$this->data['b_Block_Header_Top'] = $b_Block_Header_Top;
		
		$this->data['b_Block_Header_Bottom'] = array();
		
		if (isset($this->request->post['b_Block_Header_Bottom'])) {
            $b_Block_Header_Bottom = $this->request->post['b_Block_Header_Bottom'];
		} elseif ($this->config->get('b_Block_Header_Bottom')) { 
            $b_Block_Header_Bottom = $this->config->get('b_Block_Header_Bottom');
		}else{
			$b_Block_Header_Bottom = '';
		}
		
		$this->data['b_Block_Header_Bottom'] = $b_Block_Header_Bottom;
		
		$this->data['b_Block_Footer_1'] = array();
		
		if (isset($this->request->post['b_Block_Footer_1'])) {
            $b_Block_Footer_1 = $this->request->post['b_Block_Footer_1'];
		} elseif ($this->config->get('b_Block_Footer_1')) { 
            $b_Block_Footer_1 = $this->config->get('b_Block_Footer_1');
		} else{
			$b_Block_Footer_1 = '';
		}
		
		$this->data['b_Block_Footer_1'] = $b_Block_Footer_1;
		
		$this->data['b_Block_Footer_2'] = array();
		
		if (isset($this->request->post['b_Block_Footer_2'])) {
            $b_Block_Footer_2 = $this->request->post['b_Block_Footer_2'];
		} elseif ($this->config->get('b_Block_Footer_2')) { 
            $b_Block_Footer_2 = $this->config->get('b_Block_Footer_2');
		}else{
			$b_Block_Footer_2 = '';
		}
		
		$this->data['b_Block_Footer_2'] = $b_Block_Footer_2;
		
		$this->data['b_Block_Footer_3'] = array();
		
		if (isset($this->request->post['b_Block_Footer_3'])) {
            $b_Block_Footer_3 = $this->request->post['b_Block_Footer_3'];
		} elseif ($this->config->get('b_Block_Footer_3')) { 
            $b_Block_Footer_3 = $this->config->get('b_Block_Footer_3');
		}else{
			$b_Block_Footer_3 = '';
		}
		
		$this->data['b_Block_Footer_3'] = $b_Block_Footer_3;
		
		$this->data['b_Block_Footer_4'] = array();
		
		if (isset($this->request->post['b_Block_Footer_4'])) {
            $b_Block_Footer_4 = $this->request->post['b_Block_Footer_4'];
		} elseif ($this->config->get('b_Block_Footer_4')) { 
            $b_Block_Footer_4 = $this->config->get('b_Block_Footer_4');
		}else{
			$b_Block_Footer_4 = '';
		}
		
		$this->data['b_Block_Footer_4'] = $b_Block_Footer_4;
		
		
		$this->data['b_Block_Footer_5'] = array();
		
		if (isset($this->request->post['b_Block_Footer_5'])) {
            $b_Block_Footer_5 = $this->request->post['b_Block_Footer_5'];
		} elseif ($this->config->get('b_Block_Footer_5')) { 
            $b_Block_Footer_5 = $this->config->get('b_Block_Footer_5');
		}else{
			$b_Block_Footer_5= '';
		}
		
		$this->data['b_Block_Footer_5'] = $b_Block_Footer_5;
		
		
		$this->data['b_Block_Footer_6'] = array();
		
		if (isset($this->request->post['b_Block_Footer_6'])) {
            $b_Block_Footer_6 = $this->request->post['b_Block_Footer_6'];
		} elseif ($this->config->get('b_Block_Footer_6')) { 
            $b_Block_Footer_6 = $this->config->get('b_Block_Footer_6');
		}else{
			$b_Block_Footer_6 = '';
		}
		
		$this->data['b_Block_Footer_6'] = $b_Block_Footer_6;
		
		
		$this->data['b_Block_Footer_7'] = array();
		
		if (isset($this->request->post['b_Block_Footer_7'])) {
            $b_Block_Footer_7 = $this->request->post['b_Block_Footer_7'];
		} elseif ($this->config->get('b_Block_Footer_7')) { 
            $b_Block_Footer_7 = $this->config->get('b_Block_Footer_7');
		}else{
			$b_Block_Footer_7 = '';
		}
		
		$this->data['b_Block_Footer_7'] = $b_Block_Footer_7;
		

		$this->data['modules'] = array();
		
		if (isset($this->request->post['boss_staticblock_module'])) {
			$this->data['modules'] = $this->request->post['boss_staticblock_module'];
		} elseif ($this->config->get('boss_staticblock_module')) { 
			$this->data['modules'] = $this->config->get('boss_staticblock_module');
		}	
		
		$this->load->model('design/layout');
		
		$this->data['layouts'] = $this->model_design_layout->getLayouts();
		
		$this->load->model('setting/store');
		
		$this->data['stores'] = $this->model_setting_store->getStores();
		
		$this->load->model('localisation/language');
		
		$this->data['languages'] = $this->model_localisation_language->getLanguages();
						
		$this->template = 'module/boss_staticblock.tpl';
		$this->children = array(
			'common/header',
			'common/footer'
		);
				
		$this->response->setOutput($this->render());
	}
	
	protected function validate() {
		if (!$this->user->hasPermission('modify', 'module/boss_staticblock')) {
			$this->error['warning'] = $this->language->get('error_permission');
		}
		if (!$this->error) {
			return true;
		} else {
			return false;
		}
	}
	
	private function getIdLayout($layout_name) {
		$query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "layout WHERE LOWER(name) = LOWER('".$layout_name."')");
		return (int)$query->row['layout_id'];
	}

	public function install() 
	{
		$this->load->model('setting/setting');
		
		$this->load->model('localisation/language');
			
		$languages = $this->model_localisation_language->getLanguages();
		
		$array_description1 = array();
		$array_description2 = array();
		$array_description3 = array();
		$array_description4 = array();
		$array_description5 = array();
		$array_description6 = array();
		$array_description7= array();
		$array_description8 = array();
		$b_Block_Header_Top = array();
		$b_Block_Footer_1 = array();
		$b_Block_Footer_2 = array();
		$b_Block_Footer_3 = array();
		$b_Block_Footer_4 = array();
		$b_Block_Footer_5 = array();
		$b_Block_Footer_6 = array();
		$b_Block_Footer_7 = array();
						
		foreach($languages as $language){
			$array_description1{$language['language_id']} = '&lt;div class=&quot;static-banner-bottom&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;deal&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_deal.png&quot; title=&quot;deal&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$array_description2{$language['language_id']} = '&lt;div class=&quot;static_banner boss-banner&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_11.jpg&quot; title=&quot;banner&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$array_description3{$language['language_id']} = '&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;200&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$array_description4{$language['language_id']} = '&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;400&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;500&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$array_description5{$language['language_id']} = '&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_7.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_8.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_9.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner boss-banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;300&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_10.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$array_description6{$language['language_id']} = '&lt;div class=&quot;static_banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;400&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;static_banner not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;400&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;banner&quot;&gt;&lt;img alt=&quot;banner&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_col_2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;';
			$b_Block_Header_Top{$language['language_id']} = '&lt;div class=&quot;static-header-top&quot;&gt;
&lt;div class=&quot;block-1&quot;&gt;&lt;img alt=&quot;support&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/banner_call.png&quot; title=&quot;Support&quot; /&gt;
&lt;p&gt;&lt;a href=&quot;#&quot;&gt;Have Question? &lt;b&gt;Just ask us!&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;block-2&quot;&gt;
&lt;ul&gt;
	&lt;li class=&quot;block-style free-return not-animated&quot; data-animate=&quot;fadeInDown&quot; data-delay=&quot;200&quot;&gt;
	&lt;p&gt;Free return for 100 days&lt;/p&gt;
	&lt;/li&gt;
	&lt;li class=&quot;box-style cash not-animated&quot; data-animate=&quot;fadeInDown&quot; data-delay=&quot;300&quot;&gt;
	&lt;p&gt;Cash on delivery&lt;/p&gt;
	&lt;/li&gt;
	&lt;li class=&quot;box-style free-shipping not-animated&quot; data-animate=&quot;fadeInDown&quot; data-delay=&quot;400&quot;&gt;
	&lt;p&gt;Free overnight shipping&lt;/p&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;';
			$b_Block_Footer_1{$language['language_id']} = '&lt;div class=&quot;static_footer_support not-animated&quot; data-animate=&quot;fadeInUp&quot; data-delay=&quot;200&quot;&gt;
&lt;div class=&quot;number&quot;&gt;
&lt;div&gt;&lt;span&gt;Questions ? Call us now !&lt;em&gt;Daily from 8AM-12 Midnight&lt;/em&gt;&lt;/span&gt; &lt;span&gt;(+000)1.234.5678&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;safe&quot;&gt;
&lt;h2&gt;Safe Pay&lt;/h2&gt;

&lt;p&gt;Guarantees 100% protection to both buyers &amp;amp; sellers&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;gift&quot;&gt;&lt;img alt=&quot;gift&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-1.png&quot; title=&quot;gift&quot; /&gt;
&lt;p&gt;Get Surprised&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;';
			$b_Block_Footer_2{$language['language_id']} = '&lt;div class=&quot;column	static_popular_search&quot;&gt;
&lt;h3&gt;Popular Searches&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Quisque placerat&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Fringilla&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Donec vitae&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Elit neque&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Nam odio&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Pellentesque&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Condimentum&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tincidunt&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Adipiscing&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Non&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Magna&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Nunc at&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Enim eros&lt;/a&gt;&lt;/li&gt;
	&lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;#&quot;&gt;Eget&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;';
			$b_Block_Footer_3{$language['language_id']} = '&lt;div class=&quot;column static_contries&quot;&gt;
&lt;h3&gt;eBuy.com countries&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Class aptent&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Taciti&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Sociosqu&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Litora&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Torquent&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Conubia&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Nostra&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;';
			$b_Block_Footer_4{$language['language_id']} = '&lt;div class=&quot;column static_follow&quot;&gt;
&lt;h3&gt;Follow us&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;img alt=&quot;Facebook&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-7.png&quot; title=&quot;Facebook&quot; /&gt;&lt;a href=&quot;#&quot;&gt;Follow us on Facebook&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img alt=&quot;Twitter&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-8.png&quot; title=&quot;Twitter&quot; /&gt;&lt;a href=&quot;#&quot;&gt;Follow us on Twitter&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img alt=&quot;Rss&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-9.png&quot; title=&quot;Rss&quot; /&gt;&lt;a href=&quot;#&quot;&gt;Rss updates&lt;/a&gt;&lt;/li&gt;
	&lt;li class=&quot;last&quot;&gt;&lt;img alt=&quot;Youtube&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-10.png&quot; title=&quot;Youtube&quot; /&gt;&lt;a href=&quot;#&quot;&gt;Watch our videos&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;';
			$b_Block_Footer_5{$language['language_id']} = '&lt;div class=&quot;column static_payment&quot;&gt;
&lt;h3&gt;Convenient payment methods&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;Cash&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;gift&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-2.png&quot; title=&quot;gift&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;On delivery&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Paypal&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-3.png&quot; title=&quot;Paypal&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;MasterCard&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-4.png&quot; title=&quot;MasterCard&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Visa&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-5.png&quot; title=&quot;Visa&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;AmericanExpress&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-6.png&quot; title=&quot;AmericanExpress&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;';
			$b_Block_Footer_6{$language['language_id']} = '&lt;div class=&quot;column static_security&quot;&gt;
&lt;h3&gt;Security&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Security&amp;quot;&amp;quot;&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-11.png&quot; title=&quot;Security&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Security&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-12.png&quot; title=&quot;Security&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Security&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-13.png&quot; title=&quot;Security&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img alt=&quot;Security&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/icon-f-14.png&quot; title=&quot;Security&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;';
			$b_Block_Footer_7{$language['language_id']} = '&lt;div class=&quot;static_about_us&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;img alt=&quot;logo&quot; src=&quot;http://demo.bossthemes.com/ebuy/image/data/bt_ebuy/logo_footer.png&quot; title=&quot;logo&quot; /&gt;&lt;/a&gt;
&lt;p&gt;Fusce ligula sapien, rutrum vel euismod id, viverra ut massa. Suspendisse potenti. Quisque a magna est, id interdum nunc. Suspendisse lobortis augue viverra dui posuere dictum. Cras facilisis ultries orci at pharetra In hac habitasse platea dictumst. Quisque imperdiet dapibus dui, in imperdiet odio tincidunt id. Vestibulum id tellus felis. Nulla nisi est, consectetur eu accumsan eget, vehicula et Integer tellus lacus, auctor eu consect egestas sed nisl. Nullam vel augue velit. Suspendisse sed ante ut ante pulvinar ornare a et ante. Sed dictum turpis id nibh luctus condimentum.&lt;/p&gt;
&lt;/div&gt;';
        }
		

		$data = array(
			'boss_staticblock_module' 	=> array(
			0 => array('description' => $array_description1, 'layout_id' => $this->getIdLayout("home"), 'store_id' => array(0=>0), 'position' => 'header', 'status' => 1, 'sort_order' => 1),
			1 => array('description' => $array_description2, 'layout_id' => $this->getIdLayout("home"), 'store_id' => array(0=>0), 'position' => 'slideshow', 'status' => 1, 'sort_order' => 1),
			2 => array('description' => $array_description3, 'layout_id' => $this->getIdLayout("home"), 'store_id' => array(0=>0), 'position' => 'column_left', 'status' => 1, 'sort_order' => 1),
			3 => array('description' => $array_description4, 'layout_id' => $this->getIdLayout("home"), 'store_id' => array(0=>0), 'position' => 'column_left', 'status' => 1, 'sort_order' => 3),
			4 => array('description' => $array_description5, 'layout_id' => $this->getIdLayout("home"), 'store_id' => array(0=>0), 'position' => 'column_left', 'status' => 1, 'sort_order' => 5),
			5 => array('description' => $array_description6, 'layout_id' => $this->getIdLayout("category"), 'store_id' => array(0=>0), 'position' => 'column_left', 'status' => 1, 'sort_order' => 5),
			6 => array('description' => $array_description6, 'layout_id' => $this->getIdLayout("product"), 'store_id' => array(0=>0), 'position' => 'column_left', 'status' => 1, 'sort_order' => 5)
			),
			'b_Block_Header_Top'		=> array('content' => $b_Block_Header_Top, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_1'			=> array('content' => $b_Block_Footer_1, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_2'			=> array('content' => $b_Block_Footer_2, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_3'			=> array('content' => $b_Block_Footer_3, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_4'			=> array('content' => $b_Block_Footer_4, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_5'			=> array('content' => $b_Block_Footer_5, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_6'			=> array('content' => $b_Block_Footer_6, 'status' => 1, 'store_id' => array(0=>0)),
			'b_Block_Footer_7'			=> array('content' => $b_Block_Footer_7, 'status' => 1, 'store_id' => array(0=>0))

		 
		);

		$this->model_setting_setting->editSetting('boss_staticblock', $data);		
	}
}
?>